﻿@using System.Web.Mvc.Html
@model FazaDemo.ViewModels.LoginViewModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Вход</title>
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery", "~/bundles/jquerymobile")
    <script type="text/javascript" src="~/Scripts/AppScripts/LoginInfoSaver.js">
       
    </script>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            <P>
                @Html.LabelFor(model => model.UserName, "Имя пользователя")
                @Html.EditorFor(model => model.UserName)
            </p>
            <p>
                @Html.LabelFor(model => model.SelectedRoleId, "Роль")
                @Html.DropDownListFor(model => model.SelectedRoleId, Model.Roles)
            </p>
            <p>
                @Html.LabelFor(model => model.Password, "Пароль")
                @Html.PasswordFor(model => model.Password)
            </p>
            <p>
                <input id="buttonInput" type="submit" value="Войти"/>
            </p>
        }
    </div>
</body>

</html>
